package com.wxy.gks.springbootprojectday22practice.dao;

import com.wxy.gks.springbootprojectday22practice.bean.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface UserMapp {
    @Select("select * from user where name=#{name}")
    public User findUserByUsername(String name);
    @Select("select * from user where name=#{name} and pass=#{pass}")
    public User findUserByNameAndPass(User user);
}
